package com.chris.homecare.data
{
	public class Update implements IDataObject
	{
		private var _id:String;
		private var _headingText:String;
		private var _description:String;
		private var _name:String;
		private var _nameTitle:String;
		private var _date:Date;
		public var dateString:String;
		private var _imageUrl:String;
		public var lastUpdate:String;
		
		public function Update(id:String, headingText:String, description:String, name:String, nameTitle:String, date:Date, imageUrl:String, lastUpdate:String, dateString:String="")
		{
			this.id = id;
			this.headingText = headingText;
			this.description = description;
			this.name = "Tim Michele";
			this.nameTitle = "President and CEO";
			this.date = date;
			this.imageUrl = imageUrl;
			this.dateString = dateString;
			this.lastUpdate = lastUpdate;
		}

		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		public function storeData():void
		{
			DataUtil.insertAnUpdate(this);
		}
		
		public function get description():String
		{
			return _description;
		}

		public function set description(value:String):void
		{
			_description = value;
		}

		public function get id():String
		{
			return _id;
		}

		public function set id(value:String):void
		{
			_id = value;
		}

		public function get imageUrl():String
		{
			return _imageUrl;
		}

		public function set imageUrl(value:String):void
		{
			_imageUrl = value;
		}

		public function get headingText():String
		{
			return _headingText;
		}

		public function set headingText(value:String):void
		{
			_headingText = value;
		}

		public function get nameTitle():String
		{
			return _nameTitle;
		}

		public function set nameTitle(value:String):void
		{
			_nameTitle = value;
		}

		public function get date():Date
		{
			return _date;
		}

		public function set date(value:Date):void
		{
			_date = value;
		}

	}
}